package com.opennetexam.manager.common;

/**
 * @author 奶茶
 * Created by on 2018/8/9.
 */
public class ReturnData {

    private Boolean success;

    private String message;

    private String code;

    private Object payload;

    private String type;

    public ReturnData() {
    }

    public ReturnData(Boolean success, String message, String code, Object payload) {
        this.success = success;
        this.message = message;
        this.code = code;
        this.payload = payload;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object getPayload() {
        return payload;
    }

    public void setPayload(Object payload) {
        this.payload = payload;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
